# vim: filetype=conf:ts=4:

backend = "xrender";
vsync = "none";
paint-on-overlay = true;

unredir-if-possible = false; # Disable tearing
sw-opti = true;
dbe = false;
unredir-if-possible-delay = 5000;
unredir-if-possible-exclude = [ ];

glx-no-stencil = true;
glx-swap-method = "undefined";
glx-copy-from-front = false;
glx-no-rebind-pixmap = true;

shadow = true;
shadow-exclude = [
	"_GTK_FRAME_EXTENTS@:c",
	"class_g *?= 'Telegram' && override_redirect = true",
	"class_g *?= 'slop'",
	"class_g *?= 'VirtualBox'",
	"class_i = 'webcam'"
];
shadow-ignore-shaped = false;

no-dnd-shadow = true;
no-dock-shadow = true;

shadow-radius = 8.0;
shadow-offset-x = -7;
shadow-offset-y = -7;
shadow-opacity = 0.9;

mark-wmwin-focused = true;
#mark-ovredir-focused = true;
use-ewmh-active-win = true;
detect-rounded-corners = true;
detect-client-opacity = true;

#fading = true;
fade-delta = 2.5;
fade-in-step = 0.03;
fade-out-step = 0.03;

refresh-rate = 0;

opacity-rule = [
	"100:!class_g = 'xst-256color' && !class_g = 'urxvt'"
];

focus-exclude = [
];

menu-opacity = 1;
#frame-opacity = 0.3;
inactive-opacity = 0.65;
inactive-opacity-override = false;

active-opacity = 0.9;
#blur-background = true;
#blur-background-fixed = true;
blur-background-exclude = [
	"window_type = 'dock'",
	"window_type = 'desktop'",
	"n:w:*Telegram*",
	"_GTK_FRAME_EXTENTS@:c"
];
blur-kern = "7x7gaussian";

alpha-step = 0.06;

detect-transient = true;
detect-client-leader = true;

wintypes:
{
	tooltip = { fade = true; shadow = false; opacity = 1; focus = true; };
	dialog = { opacity = 1; };
	popup_menu = { shadow = false; };
	splash = { shadow = false; };
};
